package com.exam.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
//控制页面重定向的类
public class PageRedirectController {

    @RequestMapping("/index")
    private String index(){
        return "index";
    }

    @RequestMapping("/student")
    private String indexStudent(){
        return "student";
    }

    @RequestMapping("/teacher")
    private String indexTeacher(){
        return "teacher";
    }

    @RequestMapping("/managerlogin")
    private String managerLogin(){
        return "managerlogin";
    }

    @RequestMapping("/studentlogin")
    private String studentLogin(){
        return "studentlogin";
    }

    @RequestMapping("/teacherlogin")
    private String teacherLogin(){
        return "teacherlogin";
    }
}
